Skip to content

[Editor][Typing] Fixing missing types in perseus-editor/src/components#3448

Merged
catandthemachines merged 15 commits intomainfrom
catjohnson/lems-2748
Apr 6, 2026
Merged

[Editor][Typing] Fixing missing types in perseus-editor/src/components#3448
catandthemachines merged 15 commits intomainfrom
catjohnson/lems-2748

Conversation

@catandthemachines
Copy link
Copy Markdown
Member

@catandthemachines catandthemachines commented Apr 1, 2026

Summary:

Adding missing types to perseus-editor/src/components folder. This is important to minimize regressions and create a more stable editor experiences.

I also moved the associated stories for components back into the proper folder type so it now appears in our Storybook again.

Issue: LEMS-2748

Test plan:

Run pnpm test
And because this is old legacy code, will create a ZND and test this in our editor to double check no glaring type issues.

ZND PR: https://github.com/Khan/frontend/pull/9938

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 1, 2026

🗄️ Schema Change: No Changes ✅

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 1, 2026

🛠️ Item Splitting: No Changes ✅

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 1, 2026

Size Change: +20 B (0%)

Total Size: 495 kB

Filename Size Change
packages/perseus-editor/dist/es/index.js 102 kB +20 B (+0.02%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 20.5 kB
packages/keypad-context/dist/es/index.js 1 kB
packages/kmath/dist/es/index.js 6.21 kB
packages/math-input/dist/es/index.js 98.5 kB
packages/math-input/dist/es/strings.js 1.61 kB
packages/perseus-core/dist/es/index.item-splitting.js 11.9 kB
packages/perseus-core/dist/es/index.js 25.1 kB
packages/perseus-linter/dist/es/index.js 9.3 kB
packages/perseus-score/dist/es/index.js 9.66 kB
packages/perseus-utils/dist/es/index.js 403 B
packages/perseus/dist/es/index.js 193 kB
packages/perseus/dist/es/strings.js 8.09 kB
packages/pure-markdown/dist/es/index.js 1.39 kB
packages/simple-markdown/dist/es/index.js 6.71 kB

compressed-size-action

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 1, 2026

npm Snapshot: Published

Good news!! We've packaged up the latest commit from this PR (086df74) and published it to npm. You
can install it using the tag PR3448.

Example:

pnpm add @khanacademy/perseus@PR3448

If you are working in Khan Academy's frontend, you can run the below command.

./dev/tools/bump_perseus_version.ts -t PR3448

If you are working in Khan Academy's webapp, you can run the below command.

./dev/tools/bump_perseus_version.js -t PR3448

@catandthemachines
Copy link
Copy Markdown
Member Author

@claude review once

@catandthemachines catandthemachines marked this pull request as ready for review April 2, 2026 17:35
Copy link
Copy Markdown

@claude claude bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

@catandthemachines
Copy link
Copy Markdown
Member Author

@claude review once

@catandthemachines catandthemachines requested a review from a team April 2, 2026 21:25
@catandthemachines catandthemachines merged commit 0e30752 into main Apr 6, 2026
11 checks passed
@catandthemachines catandthemachines deleted the catjohnson/lems-2748 branch April 6, 2026 21:51
mark-fitzgerald pushed a commit that referenced this pull request Apr 7, 2026
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.


# Releases
## @khanacademy/[email protected]

### Minor Changes

-   [#3273](#3273) [`1f532f29c0`](1f532f2) Thanks [@mark-fitzgerald](https://github.com/mark-fitzgerald)! - [Radio] Merge top-level widget files into one, and refactor to remove legacy code

### Patch Changes

-   [#3457](#3457) [`9578d5a1ae`](9578d5a) Thanks [@mark-fitzgerald](https://github.com/mark-fitzgerald)! - Sync dependencies with Frontend


-   [#3417](#3417) [`732cfab8fc`](732cfab) Thanks [@jandrade](https://github.com/jandrade)! - Updates WB typography instances to use `Heading` and `BodyText`.

-   Updated dependencies \[[`9578d5a1ae`](9578d5a)]:
    -   @khanacademy/[email protected]

## @khanacademy/[email protected]

### Patch Changes

-   [#3457](#3457) [`9578d5a1ae`](9578d5a) Thanks [@mark-fitzgerald](https://github.com/mark-fitzgerald)! - Sync dependencies with Frontend

## @khanacademy/[email protected]

### Patch Changes

-   [#3457](#3457) [`9578d5a1ae`](9578d5a) Thanks [@mark-fitzgerald](https://github.com/mark-fitzgerald)! - Sync dependencies with Frontend


-   [#3448](#3448) [`0e30752302`](0e30752) Thanks [@catandthemachines](https://github.com/catandthemachines)! - Adding improved type safeguards to components folder in perseus-editor.

-   Updated dependencies \[[`9578d5a1ae`](9578d5a), [`1f532f29c0`](1f532f2), [`732cfab8fc`](732cfab)]:
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]

Author: khan-actions-bot

Reviewers: claude[bot], mark-fitzgerald

Required Reviewers:

Approved By: mark-fitzgerald

Checks: ✅ 6 checks were successful, ⏭️  2 checks have been skipped

Pull Request URL: #3453
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants